<%@ page language="java"
	import="java.util.*,com.google.gson.*,com.bidcms.util.*,com.bidcms.domain.*"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html class="no-js admin <% 
Integer ps = (Integer)request.getAttribute("ps");
JsonArray items = (JsonArray)request.getAttribute("dataJson");
JsonObject json1 = (JsonObject)items.get(0);
feature_class info = (feature_class)request.getAttribute("info");
List<feature> list = (ArrayList<feature>)request.getAttribute("list");
if(ps==800){
%>responsive-540<%
 }
 %> responsive-<% out.write(ps);

%>" lang="zh-CN" >
<head>
    <meta charset="utf-8">
    <meta name="keywords" content="Bidcms,微信商城,粉丝营销,微信商城运营" />
    <meta name="description" content="Bidcms是帮助商家在微信上搭建微信商城的平台，提供店铺、商品、订单、物流、消息和客户的管理模块，同时还提供丰富的营销应用和活动插件。" /><meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="cleartype" content="on">
    <!-- dns prefetch -->

    <link rel="icon" href="${webRoot}/static/v2/image/favicon.ico" />
    <title>${pagetitle}</title>
    <!-- _global -->
    <script>
	var _global =${base};
	_global.mp_data=${mp_data};
	_global.url=${url};
	_global.query_path="/show/tag";
	_global.module="show";
	_global.controller="show_controller";
	_global.action="tag_action";
	window.UEDITOR_HOME_URL ="${webRoot}/static/v2/vendor/ueditor/dist/";
    //base_head_script.js
    function viewportMeta(){var e=parseInt(window.screen.width),t=e/640,i=navigator.userAgent;if(/Android (\d+\.\d+)/.test(i)){var a=parseFloat(RegExp.$1);document.write(a>2.3?'<meta name="viewport" content="width=640, minimum-scale = '+t+", maximum-scale = "+t+', target-densitydpi=device-dpi">':'<meta name="viewport" content="width=640, target-densitydpi=device-dpi">')}else document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">')}function _cdnFallback(e){var t=e.nodeName.toLowerCase(),i=document.createElement(t),a={script:"src",link:"href"},n=a[t],o=e[n];o=o.replace("${webRoot}/static","static.bidcms.com"),"link"==t&&(i.rel="stylesheet"),i[n]=o,document.body.appendChild(i)}!function(e){var t=document.documentElement;e.match(/micromessenger\/5/gi)?t.className=t.className+" mobile wx_mobile wx_mobile_5":e.match(/micromessenger/gi)?t.className=t.className+" mobile wx_mobile":window._global.is_mobile&&(t.className=t.className+" mobile")}(navigator.userAgent||navigator.vendor||window.opera);
</script>


    <!-- meta viewport -->
            <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    
    <!-- CSS -->
    <link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/base.css" >    <link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/projects/showcase_admin.css" >        </head>

<body class=" ">
        <!-- container -->
<div class="container ">
	<div class="header">
		<div class="headerbar">
			<div class="headerbar-wrap clearfix">
			<div class="headerbar-preview">
			<span>预览：</span>
			<ul>
			<li>
			<a href="${webRoot}/index?con=show&act=fcategory&id=${id}&ps=320" class="js-no-follow <% 
			
			out.write(ps==320?"active":"");
			%>" data-size="default">iPhone版</a>
			</li>
			<li>
			<a href="${webRoot}/index?con=show&act=fcategory&id=${id}&ps=540" class="js-no-follow <% out.write(ps==540?"active":"");%>" data-size="540">三星Note3版</a>
			</li>
			<li>
			<a href="${webRoot}/index?con=show&act=fcategory&id=${id}&ps=800" class="js-no-follow <% out.write(ps==800?"active":"");%>" data-size="800">PC版</a>
			</li>
			</ul>
			</div>
			<div class="headerbar-reedit">
			<a href="${webRoot}/index?con=showcase&act=fcategory#edit/${id}" class="js-no-follow">重新编辑</a>
			</div>
			</div>
		</div>
		<!-- ▼顶部通栏 -->
		<div class="js-mp-info share-mp-info">
		<a class="page-mp-info" href="index?con=show">
		<img class="mp-image" width="24" height="24" src="${webRoot}/${shoplogo}"/>
		<i class="mp-nickname">${shopname}</i>
		</a>
		<div class="links">
		<a class="mp-homepage" href="index?con=show&act=usercenter">我的记录</a>
		<a class="js-open-fav follow-mp" href="javascript:;">收藏</a>
		</div>
		</div>
		<!-- ▲顶部通栏 -->
	</div>        

<div class="content js-mini-height">
        <div class="content-body">
    
    <div class="custom-title">
        <h2 class="title"><% out.write(info.getTitle());%></h2>
    </div>
	<% if(json1.get("content")!=null){%>
	<div class="custom-richtext"><% out.write(json1.get("content").getAsString());%></div>
	<% }%>
	<% if(json1.get("show_method").getAsInt()==0){%>
	<ul class="custom-nav custom-nav-noicon clearfix">
	<% for(feature f : list){%>
	<li>
	<a class="clearfix" href="index?con=show&act=feature&id=<% out.write(f.getId());%>" target="_blank">
	<span class="custom-nav-title"><% out.write(f.getTitle());%></span><i class="pull-right right-arrow"></i></a>
	</li>
	<% }%>
	</ul>
	<% } else if(json1.get("show_method").getAsInt()==1){%>
	<% for(feature f : list){%>
	<div class="custom-messages single">
	<a href="index?con=show&act=feature&id=<% out.write(f.getId());%>" class="clearfix">
	<h4 class="title"><% out.write(f.getTitle());%></h4>
	<div class="summary"><% out.write(f.getDescription());%></div>
	</a>
	</div>
	<% }%>
	<% }%>
	<jsp:include  page="global_block.jsp"/>
     </div>    
     <jsp:include  page="global_sidebar.jsp"/>
     <jsp:include  page="global_shopnav.jsp"/>                   		
    </div>    
    <jsp:include  page="global_footer.jsp"/>    
	</div>

    <!-- JS -->
    <script src="${webRoot}/static/v2/vendor/jquery-2.0.3.min.js" ></script>
    <script src="${webRoot}/static/v2/build/wap/base.js" ></script>
    <script src="${webRoot}/static/v2/build/wap/showcase/index.js" ></script>    
        <a id="global-cart" class="global-cart-wrap hide not-empty" href="http://wap.bidcms.com/v2/trade/cart?bid_id=${shopId}">
</a>
<script>
window.refreshCartIcon = function(){
    !!$ && $.ajax({
        url: window._global.url.www + '/trade/cart/count',
        type: 'GET',
        timeout: 5000,
        dataType : "json",
        success: function(resp) {
            if(parseInt(resp.code)===0) {
                var count = parseInt(resp.data);
                if(count>0) {
                    $('#global-cart').removeClass('hide');
                } else {
                    $('#global-cart').addClass('hide');
                }
            }
        }
    });
};

refreshCartIcon();

</script>
    </body>
</html>